package org.example.controller;

import com.github.pagehelper.PageInfo;
import org.example.model.common.Response;
import org.example.model.common.SimStdPlanQry;
import org.example.service.StrategyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Ran
 * @Date: 2021/9/22
 **/
@RestController
@RequestMapping(value = "/api/project/")
public class StrategyController {

    @Autowired
    private StrategyService strategyService;

    @RequestMapping(value = "/getStrategyOptions", method = RequestMethod.POST)
    public Response getStrategyOptions(@RequestBody SimStdPlanQry simStdPlanQry ) {
        return strategyService.getStrategyOptions(simStdPlanQry);
    }
}
